gl renderer: Shorten debug output impl
authorTimm Bäder <mail@baedert.org>
Sat, 14 Dec 2019 13:33:38 +0000 (14:33 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 7 Jan 2020 16:27:15 +0000 (17:27 +0100)
This will leak a string but WHATEVER.

gsk/gl/gskglrenderer.c

index 1d1e3b93e3005588b484edbef046fa1433915e1d..1713c5e7578f0b685a150abade09e1fff0f456f6 100644 (file)
@@ -2521,17 +2521,7 @@ static inline void
 apply_clip_op (const Program *program,
                const OpClip  *op)
 {
-  OP_PRINT (" -> Clip (%f, %f, %f, %f) (%f, %f, %f, %f), (%f, %f, %f, %f)",
-            op->clip.bounds.origin.x, op->clip.bounds.origin.y,
-            op->clip.bounds.size.width, op->clip.bounds.size.height,
-            op->clip.corner[0].width,
-            op->clip.corner[1].width,
-            op->clip.corner[2].width,
-            op->clip.corner[3].width,
-            op->clip.corner[0].height,
-            op->clip.corner[1].height,
-            op->clip.corner[2].height,
-            op->clip.corner[3].height);
+  OP_PRINT (" -> Clip: %s", gsk_rounded_rect_to_string (&op->clip));
   glUniform4fv (program->clip_rect_bounds_location, 1, (float *)&op->clip.bounds);
   glUniform2fv (program->clip_rect_corners_location, 4, (float *)&op->clip.corner);
 }